#include "PTCamera.h"


int main( int argc, char** argv ) {

	PTCamera *cam = new PTCamera();
	PTBitmap *bmp = new PTBitmap();

	FreeConsole();

	if ( cam->Init() ) {
	
		if ( cam->Run() ) {
			
			Sleep( 10000 );

			if ( cam->Pause() ) {
			
				Sleep( 1000 );
			}
		}
	}

	cam->Stop();

	// Grab a picture from the camera before exiting.

	delete cam;
	delete bmp;

	return 0;
}